


const state = {
  // 用户状态
  status: false,
  //用户名称
  username:''
};


const mutations = {
  SET_STATUS:(state,payload)=>{
    state.token=payload
  }
}


const actions = {
  // 登录
  // login({commit},payload){
  //   const {username,password}=payload;
  //   return new Promise((resolve,reject)=>{
    
  //   })
  // },

  // 获取权限
  // async initRole({commit ,dipatch},payload){

  // }
}


export default {
  namespaced: true,
  state,
  mutations,
  actions
}